package com.ruoyi.feign;




import com.ruoyi.common.security.annotation.RequiresPermissions;

import com.ruoyi.domain.Building;
import com.ruoyi.domain.Community;
import com.ruoyi.domain.Resident;
import com.ruoyi.domain.Task;
import com.ruoyi.fallbackFactory.UserFeignClientFallbackFactory;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;


import java.util.Date;
import java.util.List;

@FeignClient(value = "ruoyi-user")
public interface UserTaskFeignClient {

    @GetMapping(value = "/community/community/{id}")
    Community communityGetInfo(@PathVariable("id") Long id);

    @GetMapping(value = "/building/building/{id}")
    Building buildingGetInfo(@PathVariable("id") Long id);


    @GetMapping(value = "/resident/resident/{id}")
    Resident residentGetInfo(@PathVariable("id") Long id);

    @GetMapping(value = "/resident/residentByBuildingId")
     List<Resident> residentByBuildingId(@RequestBody Task task);




}